# 1.假设有一个字符串
str1 = '''
Hello, my name is Alex Chen. I'm a curious traveler and part-time storyteller with a passion for collecting vintage maps. 
I once spent three months living in a lighthouse off the coast of Iceland, where I learned to communicate with seagulls using only hand gestures. My favorite possession is a 1920s compass that supposedly belonged to a famous explorer who vanished in the Amazon.
When I'm not decoding ancient maritime journals, you can find me teaching origami to cats or organizing underground tea tasting events in abandoned subway stations. I believe Tuesdays are secretly luckier than Fridays, and I always keep a spoon in my pocket for emergency dessert situations.
My life goal is to find the perfect croissant in every country I visit. So far, I've discovered 47 variations and counting. If you ever need someone to identify cloud shapes or recite the alphabet backwards while juggling, I'm your person.
Nice to meet you!'''

# 打印所有字母H或者h出现的顺序号
count = 0
for i in str1:
    if i == 'H' or i == 'h':
        print("H或者h出现的顺序号是:", count)
    count += 1
